package com.zsk.shop.model.results;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author Ys
 * @date 2021年11月29日 17:27
 */
@Data
@ApiModel("后台首页返回商品列表")
public class ShopGoodsInfoResult {

    @ApiModelProperty("商品ID")
    private Long id;

    @ApiModelProperty("商品No")
    private String goodsNo;

    private Integer goodsType;

    private GoodsTypeResult goodsTypeResult;

    @ApiModelProperty("商品主图")
    private String goodsImgs;

    @ApiModelProperty("商品名称")
    private String goodsName;

    private String goodsCategoryNo;

    @ApiModelProperty("商品分类名称")
    private String goodsCategoryName;

    private String goodsLabelNo;

    @ApiModelProperty("商品标签名称")
    private String goodsLabelName;

    @ApiModelProperty("状态 1上架 0下架")
    private Boolean status;

    @ApiModelProperty("是否根据标签显示主页")
    private Boolean accordingLabelShow;

    @ApiModelProperty(name = "price", value = "单SKU商品原价格", dataType = "BigDecimal")
    private String price;

    @ApiModelProperty(name = "allStock", value = "剩余总库存", dataType = "Integer")
    private Integer allStock;

    @ApiModelProperty(name = "orderSaleCount", value = "实际销售量", dataType = "Integer")
    private Integer orderSaleCount;

    @ApiModelProperty(name = "saleCount", value = "销售量", dataType = "Integer")
    private Integer saleCount;

    private Date createTime;
    private Date updateTime;

    @ApiModelProperty(name = "publishType", value = "商品发布限制开关：是否发布1马上发布，2根据时间发布，3不发布", dataType = "Integer")
    private Integer publishType;

    @ApiModelProperty(name = "publishTime", value = "发布时间", dataType = "Date")
    private Date publishTime;

    @ApiModelProperty(name = "havePreSaleTime", value = "是否开启预售时间", dataType = "Boolean")
    private Boolean havePreSaleTime;

    @ApiModelProperty(name = "preSaleTime", value = "预售时间", dataType = "Date")
    private Date preSaleTime;

}
